# -*- coding: utf-8 -*-
'''
Created on 2013-3-8

@author: Administrator
'''

def paramFromRequest(request,name):
    try :
        return request.GET[name]
    except :
        try :
            return request.POST[name]
        except :
            return None

def main():
    return

if __name__ == "__main__":
    main()